#ifndef _ARKSTRUCT_COMMON_H__
#define _ARKSTRUCT_COMMON_H__
#pragma once
#include <string>
#include <iostream>
#include <vector>
#include <atomic>

struct ArkKcxpSvr
{
	std::string kcxp_addr;
	std::string kcxp_user;
	std::string kcxp_pswd;
	std::string kcxp_reqque;
	std::string kcxp_ansque;

	uint32_t kcxp_enable{ 0 };
	uint32_t kcxp_port{ 0 };
	uint32_t kcxp_retry{ 0 };
	uint32_t kcxp_timeout{ 0 };
	uint32_t kcxp_buffsize{ 0 };
	uint32_t kcxp_poolsize{ 0 };

	ArkKcxpSvr& operator= (const ArkKcxpSvr& other)
	{
		kcxp_addr = other.kcxp_addr;
		kcxp_user = other.kcxp_user;
		kcxp_pswd = other.kcxp_pswd;
		kcxp_reqque = other.kcxp_reqque;
		kcxp_ansque = other.kcxp_ansque;

		kcxp_port = other.kcxp_port;
		kcxp_retry = other.kcxp_retry;
		kcxp_timeout = other.kcxp_timeout;
		kcxp_buffsize = other.kcxp_buffsize;
		kcxp_poolsize = other.kcxp_poolsize;

		return *this;
	}
};

#endif
